package com.dwarfeng.judge.stack.bean.entity;

import com.dwarfeng.subgrade.stack.bean.entity.Entity;
import com.dwarfeng.subgrade.stack.bean.key.StringIdKey;

/**
 * 提供器支持。
 *
 * @author wangyc
 * @since 2.1.0-beta
 */
public class ProviderSupport implements Entity<StringIdKey> {

    private static final long serialVersionUID = 3157274728271414410L;

    private StringIdKey key;
    private String label;
    private String description;
    private String exampleParam;

    public ProviderSupport() {
    }

    public ProviderSupport(
            StringIdKey key,
            String label,
            String description,
            String exampleParam
    ) {
        this.key = key;
        this.label = label;
        this.description = description;
        this.exampleParam = exampleParam;
    }

    @Override
    public StringIdKey getKey() {
        return key;
    }

    @Override
    public void setKey(StringIdKey key) {
        this.key = key;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getExampleParam() {
        return exampleParam;
    }

    public void setExampleParam(String exampleParam) {
        this.exampleParam = exampleParam;
    }

    @Override
    public String toString() {
        return "ProviderSupport{" +
                "key=" + key +
                ", label=" + label + '\'' +
                ", description=" + description + '\'' +
                ", exampleParam=" + exampleParam + '\'' +
                '}';
    }
}
